package com.iflytek.cosmo.ocr.service;

import com.iflytek.cosmo.ocr.common.exception.ParseDownLoadUrlExceptionAbstract;
import com.iflytek.cosmo.ocr.common.exception.VersionSetupOutputExceptionAbstract;
import com.iflytek.cosmo.ocr.model.domain.VersionSetupOutput;

/**
 * 配置信息service
 * @author xqxia3
 * @date 2018年5月7日
 */
public interface VersionSetupService {

    /**
     * 版本配置
     * @param projectName :客户端 updateConfig.cfg 中的appName
     * @param projectProfile :和客户端约定的版本描述名称
     * @return
     * @throws VersionSetupOutputExceptionAbstract
     * @throws ParseDownLoadUrlExceptionAbstract
     */
    VersionSetupOutput queryUpgradeVersionSetup(String projectName, String projectProfile)throws VersionSetupOutputExceptionAbstract, ParseDownLoadUrlExceptionAbstract;

    /**
     * 运行配置
     * @param projectName
     * @param projectProfile
     * @return
     * @throws VersionSetupOutputExceptionAbstract
     */
    VersionSetupOutput queryRunningVersionSetup(String projectName, String projectProfile)throws VersionSetupOutputExceptionAbstract;

}
